package temp;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

public class JGet
{

	public static void main(String[] args) throws IOException
	{
		try
		{
			URL url = new URL(
					"http://is.gd/api.php?longurl=http://www.google.com");

			BufferedReader in = new BufferedReader(new InputStreamReader(url
					.openStream()));
			String str;

			while ((str = in.readLine()) != null)
			{
				System.out.println(str);
			}

			in.close();
		} catch (MalformedURLException e)
		{
		} catch (IOException e)
		{
		}
	}

}
